﻿@section header
{
    <link rel="stylesheet" href="/css/treetable.css" />
}
<style>

</style>
<blockquote class="layui-elem-quote news_search toolList" id="menus">
</blockquote>
<div class="layui-row">
    <div class="layui-col-xs2">
     
    </div>
    <div class="layui-col-xs10" style="line-height:50px; height:50px; padding:5px">
        <input type="text" name="SearchDate" id="SearchDate" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input layui-col-xs1" style="width:120px" />
        <input type="text" name="SearchEndDate" id="SearchEndDate" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input layui-col-xs1" style="width:120px" />
        <button class="layui-btn layui-btn-sm layui-btn-normal " id="cSearch">查询</button>
    </div>
</div>
        <div class="layui-row">
            <div class="layui-col-sm2">
                <ul id="tree" class="ztree"
                    style="padding: 2px; border: 1px solid #ddd; overflow: auto;"></ul>
            </div>

            <div class="layui-col-sm10" id="contentHtml" >

            </div>
        </div>

        <script type="text/html" id="barList">
            <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
        </script>


        <!--添加/编辑窗口-->
        <div id="divEdit" style="display: none;width:90%;" class="center-align">
            <form class="layui-form layui-form-pane" action="" id="formEdit">
                <br />
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">选择用户</label>
                    <div class="layui-input-inline">
                        <select name="UserId" id="UserId" lay-filter="UserId" v-model="UserId" required lay-verify="required"></select>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">内容</label>
                    <div class="layui-input-block">
                        <input type="text" name="Content" v-model="Content" required lay-verify="required"
                               placeholder="内容" autocomplete="off" class="layui-textarea">
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">创建日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="CreateTime" id="CreateTime" v-model="CreateTime" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item" pane>
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" name="Remark" v-model="Remark"
                               placeholder="备注" autocomplete="off" class="layui-textarea">
                    </div>
                </div>


                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>

        <script id="tplScript" type="text/html">
            
                <div id="cdiv" style="padding: 20px; background-color: #F2F2F2;overflow-x:scroll;overflow-y:scroll;">

                    <table class="layui-table" id="tableContent">
                        {{# layui.each(d.data, function(index,item){ }}
                        <tr> 
                            <td valign="middle" align="center" style="padding:5px; width:300px">
                                {{ item.CreateDate }}日报
                            </td>
                            <td>
                                <table>
                                    <tr>
                                        {{#  layui.each(item.data, function(index2, item2){ }}
                                        <td style="padding:5px; width:300px" valign="top" align="left">

                                            <b>{{item2.UserName}}</b><Br /><pre>{{item2.Content}}</pre> <br />

                                                                                                        <font color="red">{{item2.Remark}}</font>
                                        </td>
                                        {{#  }) }}
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        {{#  }) }}

                    </table>

                </div>
               

</script>
        <script type="text/javascript" src="/layui/layui.js"></script>
        <script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.min.js"></script><!--生成图片-->
        <script type="text/javascript" src="/userJs/WorkNotesListSum.js"></script>

